Chris Pollett > Old Classes >
CS174

( Print View )

Student Corner:
  [Grades Sec1]

  [Submit Sec1]

  [Class Sign Up Sec1]

  [
Lecture Notes]
  [Discussion Board]

Course Info:
  [Texts & Links]
  [Topics/Outcomes]
  [Outcomes Matrix]
  [Grading]
  [HW Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Additional Policies]
  [Announcements]

HWs and Quizzes:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Hw5][Quizzes]

Practice Exams:
  [Mid1]  [Final]

                           












HW#1 --- last modified February 28 2019 22:14:42..

Solution set.

Due date: Sep 9

Files to be submitted:
  Hw1.zip

Purpose: To install Apache. To experiment with the HTTP protocol. To write our first XHTML 1.1 validating web page

Related Course Outcomes:

The main course outcomes covered by this assignment are:

(1) [Write HTML documents containing standard HTML elements including forms, tables, client-side scripts, and server-side scripts.]

Specification:

All files that you make for Hw 1 should be zipped together into the file Hw1.zip and submitted.

The first thing I want you to do for this homework is to install Apache, PHP, and Mysql on your laptop and configure it so I can see each of these things is running. If you decide (as I suggest) to install Xampp to get this running, then I will test that your installation is working by going to the phpMyAdmin page. Demoing this to me either at the start of class or before I give out grades for this homework is worth 1/2 a point.

For the second part of this homework I want you to experiment with using HTTP. For this part of the assignment, I want you to put two files into Hw1.zip, experiment-transcript.txt and experiment-results.txt: the former has in your own words, in English a description of what you did, the latter has actual text-captures of your experiments. The first experiment I want you to try to do is to create a small web pages in your DocumentRoot and GET request it. Try doing an HTTP/1.0 and an HTTP/1.1 request for this document. Then I want you to try a HEAD request of the same document. Finally, I want you to experiment with creating a text file of some other MIME type and see if you notice anything different happen when you request it.

For the last part of the assignment I want you to write a validating XHTML 1.1 document, pitch.html. Imagine you are trying to sell your start-up internet idea to some angel investor. pitch.html should be a web page that sells your idea to the investor. You should code the html in this page by hand. USE a simple text editor to create the page. You will receive a zero on this part of the assignment if there is code created by an HTML Editor such as Front Page, Dreamweaver or the like. Your page should have a reasonable <head> section with a title, as well as meta tags telling robots not to index your page or follow symlinks. A comparison of your idea to other existing ideas should be created using tables. Your pitch.php should constructively make use of images, links, <span> tags, and have a list on it. Be careful with image sizes, as you can only upload 2Mb. Also, please make your own images or one which can be argued are in the public domain rather than use copyrighted ones, but have fun and be creative!

To validate your page use the site: http://validator.w3.org/

Point Breakdown

Demo of running Apache with PHP on your laptop 1/2 pt
Experiment description and transcript files. (1pt per case) 4 pts
Page validates as XHTML 1.1 1/2pt
Page head has a title and meta tags as described above, tables are used on the page 1pt
Page constructively uses <img>, <link>, and <span> tags; page has a list on it. (1 point each) 4pts
Total10pts